Triggered Action Type - Create Punch

The Create Punch Triggered Action type allows you to create a "punch" on a Member's existing Punch Card.

This Action has the following parameters:

  • Punch Card Type: Select the desired Punch Card. 

  • Punch Mode: Select one of the following:

    • Punch Count: This option is used for Punch Cards that have a simple count of punches required to complete the Punch Card. In the Punches field, enter the number of punches that the Member will earn from this Triggered Action, and select Static from the drop-down menu. Optionally, enter a Groovy script in the Punches field to calculate a number of punches earned (for example, based on number of items purchased, or on the purchase amount), and select Dynamic from the drop-down menu. 

    • Named Punches: This option is used for Punch Cards that have Named Punches defined. In the Named Punches field, enter one or more Named Punches (separated by commas) that the Member will earn from this Triggered Action.

    • Punch by Value: This option is used for Punch Cards that have Named Punched defined. In the Punch Lookup Values / Code field, enter one or more values and select Static from the drop-down menu. Optionally, enter a Groovy script in this field, and select Dynamic from the drop-down menu. 

  • Process Date: Pick the desired process date to use for the punch, and select Static from the drop-down menu. Optionally, enter a Groovy script in this field to calculate the date processed, and select Dynamic from the drop-down menu

  • Ignore Limits: The platform allows you to set various limits on punches earned (see Configure Punch Card Advanced Options for more information). If you want this Triggered Action to ignore these limits, select Yes from this drop-down menu. 

  • Skip Missing Named Punches: Named Punches can optionally be arranged into a prescribed sequence. If you want this Triggered Action to ignore this sequence, select Yes from this drop-down menu. 

This Triggered Action type supports the use of custom parameters. To define a custom parameter, click Add within the Custom Parameters section, then enter the following information. 

  • Check Enabled.

  • Within the Name field, enter the name of the parameter.

  • Value: Enter either:

    • A static value to assign to every Member.

    • A Content Token or a Groovy expression to populate this parameter.

  • If you entered a static Value, check Static. Otherwise, uncheck Static.

Repeat this step as needed to define additional custom parameters. To remove a parameter, click the Delete icon next to it.